package com.boot.stu.service.Impl;

import com.boot.stu.dao.UserDao;
import com.boot.stu.entity.UserEntity;
import com.boot.stu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author cwt
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public UserEntity getUser(Integer id) {
        return userDao.findById(id);
    }
}
